import Layout from '@/layout/index.vue'

const asyncRoutes = [
  {
    path: '/transation',
    name: 'Transation',
    component: Layout,
    meta: {
      title: '资金管理',
      icon: 'nav-icon icon-transaction',
      resourceId: 'route:/web/fund-management/',
    },
    children: [
      {
        path: '/transation/list',
        name: 'TransationList',
        component: () => import('@/views/transation/index.vue'),
        meta: {
          title: '交易流水',
          resourceId: 'route:/web/fund-management/paymentbill-management/',
        },
      },
      {
        path: '/transation/detail/:id',
        name: 'TransationDetail',
        component: () => import('@/views/transation/detail.vue'),
        hidden: true,
        meta: {
          title: '交易详情',
          activeMenu: '/transation',
          resourceId:
            'route:/web/fund-management/paymentbill-management/detail/',
          key: (route) => `${route.params.id}`,
        },
      },
      {
        path: '/transation/reconciliationList',
        name: 'TransationReconciliationList',
        component: () => import('@/views/transation/reconciliationList.vue'),
        meta: {
          title: '微信对账单',
          resourceId: 'route:/web/fund-management/WeiXinBill-management/',
        },
      },
      {
        path: '/transation/unusualList',
        name: 'TransationUnusualList',
        component: () => import('@/views/transation/unusualList.vue'),
        meta: {
          title: '异常交易',
          resourceId:
            'route:/web/fund-management/paymentbillErrorLog-management/',
        },
      },
    ],
  },
]
export default asyncRoutes
